﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
  <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
  <script type="text/javascript">
    function test() {
      var kw = $("#keyword").val();
      var kws = kw.split('\n');
      var str = "";
      for (var i = 0; i < kws.length; i++) {
        str += kws[i] + "|";
      }
      alert(str);
    }
  </script>
</head>
<body>
  <textarea id="keyword" name="keywords" style="height: 84px; width: 300px; float: left;"></textarea>
  <input id="Button1" type="button" value="button" onclick="test()" />
</body>
</html>
